import request from '@/utils/request'

// 查询我的客户列表
export function listCrmcustom(query) {
  return request({
    url: '/system/crmcustom/list',
    method: 'get',
    params: query
  })
}

export function listCrmtoday() {
  return request({
    url: '/system/crmcustom/listtoday',
    method: 'get',
  })
}

export function qdtb() {
  return request({
    url: '/system/crmcustom/qdtb',
    method: 'get',
  })
}

export function listCrmcustombyid(query) {
  return request({
    url: '/system/crmcustom/listbyid',
    method: 'get',
    params: query
  })
}

export function listCrmcustombyone(query) {
  return request({
    url: '/system/crmcustom/listbyone',
    method: 'get',
    params: query
  })
}

export function listCrmcustomother(query) {
  return request({
    url: '/system/crmcustom/listother',
    method: 'get',
    params: query
  })
}

export function fpCrmcustom(query) {
  return request({
    url: '/system/crmcustom/fpCrmcustom',
    method: 'get',
    params: query
  })
}

export function pzCrmcustom(query) {
  return request({
    url: '/system/crmcustom/pzCrmcustom',
    method: 'get',
    params: query
  })
}

export function aopCrmcustom(query) {
  return request({
    url: '/system/crmcustom/aopCrmcustom',
    method: 'get',
    params: query
  })
}
export function uplevelCrmcustom(query) {
  return request({
    url: '/system/crmcustom/uplevelCrmcustom',
    method: 'get',
    params: query
  })
}

export function downleveloppo(id) {
  return request({
    url: '/system/crmcustom/downleveloppo/'+id,
    method: 'get',
  })
}

// 查询我的客户详细
export function getCrmcustom(id) {
  return request({
    url: '/system/crmcustom/' + id,
    method: 'get'
  })
}

// 新增我的客户
export function addCrmcustom(data) {
  return request({
    url: '/system/crmcustom',
    method: 'post',
    data: data
  })
}


// 修改我的客户
export function updateCrmcustom(data) {
  return request({
    url: '/system/crmcustom',
    method: 'put',
    data: data
  })
}

// 删除我的客户
export function delCrmcustom(id) {
  return request({
    url: '/system/crmcustom/' + id,
    method: 'delete'
  })
}
